package com.masterclient.app.modules.purchase.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.order.ConfirmOrderData;
import com.eoner.baselibrary.bean.purchase.PurchaseCartData;

/**
 * @auther hjian
 * @date 2020/9/22.
 */
public interface PurchaseShopCartContract {
    interface View extends BaseView{

        void showData(PurchaseCartData cartData);
        void showFailure(String msg);
        void operationalResult(boolean isSuccess,int type, String msg);
        void confirmOrderSuccess(ConfirmOrderData data, String isCustody);
    }

    abstract static class Presenter extends BasePresenter<PurchaseShopCartContract.View> {

        @Override
        public void onStart() {}

        public abstract void getData(String cart_ids);

        public abstract void updateData(String cart_id, String num);

        public abstract void deleteData(String cart_ids);

        public abstract void confirmOrder(String buy_product, String buy_type, String is_custody);



    }

}
